// 数组的解构
const arr = [100,200,300]
const [foo,bar,baz] = arr
console.log(bar) //200
console.log(baz) // 300

//...形式解构数组中剩余内容
const [...rest] = arr
console.log(rest) //[100,200,300]

// 只解构对应位置的数组内容
const [f] = arr
console.log(f) //100